package cc.yuxiang;

import java.io.File;
import java.io.IOException;
import java.util.List;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

import cc.yuxiang.spider.fanhao.Fanhao;

@EnableAsync
@EnableScheduling
@SpringBootApplication
public class MeiziApplication {

	public static void main(String[] args) throws IOException {
		SpringApplication.run(MeiziApplication.class, args);
		
		String dirVideo = "/home/store/nextcloud/data/yx666/files/ziliao/";// 结束带\\
		Fanhao fanhao = new Fanhao(dirVideo);
		List<File> videos = fanhao.findVideos();
		File target = new File("/home/store/nextcloud/data/yx666/files/ziliao/fanhao/");
		fanhao.move(videos,target);
	}
}
